App({
    onLaunch() {
        // 写入全局参数
        wx.getSystemInfo(
            {
                success: (res) => {
                    this.globalData.StatusBar = res.statusBarHeight;
                    let custom = wx.getMenuButtonBoundingClientRect();
                    this.globalData.Custom = custom;
                    this.globalData.CustomBar = custom.bottom + custom.top - res.statusBarHeight;
                }
            }
        )
        wx.login({
            success: res => {

            }
        })
    },
    globalData: {
        Custom: null,
        CustomBar: null,
        userInfo: null
    }
})
